#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START libdb4.7

reset_mtime libdb4.7 libdb4.7/dist/configure.ac
mkdir -p build/libdb4.7
cd build/libdb4.7
../../libdb4.7/dist/configure \
	${CONFIGURE_ARGS} \
	--enable-compat185 \
	--disable-cxx \
	--disable-debug \
	--disable-java  \
	--disable-posixmutexes \
	--disable-rpc \
	--disable-tcl \
	--disable-test \
	--disable-uimutexes \
	--disable-umrw \
	${AUTOCRAP_KLUDGE}

make -j${JOBS}
make -j${JOBS} install_lib install_include DESTDIR="$stage"
cd ../..
wipe_la_files "$stage"
rm -rf build/libdb4.7

# RECIPE END libdb4.7
